package com.canton.service.impl;
import com.canton.dao.entity.SymptomNode;
import com.canton.dao.repository.SymptomRepository;
import com.canton.service.SymptomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SymptomServiceImpl implements SymptomService {
    @Autowired
    private SymptomRepository symptomRepository;


    @Override
    public SymptomNode findByName(String name) {
        return symptomRepository.findByName(name);
    }

    @Override
    public List<SymptomNode> findAll() {
        return symptomRepository.findAll();
    }

    @Override
    public List<SymptomNode> findByNameLike(String likes) {
        return symptomRepository.findByNameLike(likes);
    }
}
